<template style="padding-left">
  <div>
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item label="部门列表：">
        <el-select v-model="formInline.selDept" placeholder="请选择部门列表">
          <el-option label="部门1" value="1"></el-option>
          <el-option label="部门2" value="2"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="姓名：">
        <el-input
          v-model="formInline.tbxNamecn"
          placeholder="请输入姓名"
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">检索按钮</el-button>
      </el-form-item>
    </el-form>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="empNo" label="员工编号"> </el-table-column>
      <el-table-column prop="nameCn" label="员工姓名"> </el-table-column>
      <el-table-column prop="dept" label="所在部门"> </el-table-column>
      <el-table-column prop="reportTo" label="上级ID"> </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      formInline: {
        selDept: "",
        tbxNamecn: "",
      },
    };
  },
  methods: {
    onSubmit() {
      console.log("submit!");
    },
  },
};
</script>